<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Q&A 상세보기</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>

<center>
	<body>

		<table width="655" id="boardform" border="0" cellspacing="0"
			cellpadding="0">
			<tr>
				<td colspan="2" class="tdstyle4">Q&A 1:1 문의</td>
			</tr>
			<tr>
				<td width="100" class="tdstyle6">아이디</td>
				
				<td height="30" valign="middle" class="indigo"><s:property
						value="%{resultClass.id}" /></td>
			</tr>

			<tr>
				<td class="tdstyle6">제목</td>
				
				<td height="30" valign="middle" class="indigo"><s:property
						value="%{resultClass.qna_subject}" /></td>
			</tr>

			<tr>
				<td class="tdstyle6">등록일자</td>
				
				<td height="30" valign="middle" class="indigo"><s:property
						value="%{resultClass.qna_date}" /></td>
			</tr>

			<tr>
				<td class="tdstyle6">해결여부</td>
				
				<td height="30" valign="middle" class="indigo"><s:property
						value="%{resultClass.qna_yn}" /></td>
			</tr>

			<tr>
				<td class="tdstyle6">내용</td>
				
				<td valign="top" class="indigo"><s:property
						value="%{resultClass.qna_content}" /></td>
			</tr>
			<s:if test="resultClass.qna_yn == true">
				<tr>
					<td class="tdstyle6">답변</td>
					<td height="150" valign="top" class="indigo"><s:property
							value="%{resultClass.qna_comment}" /></td>
				</tr>
			</s:if>
			<tr>
				<td width="700" height="40" valign="middle" align="center"
					colspan="2">
					<p align="center">
						<input type="button" value="삭  제" onclick="location.href='mypageQnaDelete.action?qna_no=<s:property value="resultClass.qna_no" />&currentPage=<s:property value="currentPage" />'" class="hreflink">
						<input type="button" value="목  록" onclick="location.href='mypageQnaList.action?currentPage=<s:property value="currentPage" />'" class="hreflink">
					</p>
				</td>
			</tr>
		</table>
	</body>
</center>
</html>
